<template>
  <div class="nav">
    <div class="xin">
      <img src="@/assets/img/login.png" class="logo" />
      <common></common>
      <div class="search">
        <img src="@/assets/img/放大镜.png" alt="" />
        <input type="text" placeholder="搜一搜" />
      </div>
      <div class="shopImg" @click="$router.push('/cart')">
        <!-- <img src="@/assets/img/购物车空.png" /> -->
        <!-- <span class="shopNum"></span> -->
        <HeaderCart></HeaderCart>
      </div>
    </div>
  </div>
</template>

<script>
import common from "./CommonText.vue";
import HeaderCart from "@/components/shop/HeaderCart.vue"
export default {
  components: { common , HeaderCart},
};
</script>

<style lang="scss" scoped>
.nav {
  background-color: #fff;
}
.xin {
  width: 1240px;
  height: 132px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .logo {
    width: 200px;
  }

  .search {
    display: flex;
    position: relative;
    img {
      width: 23px;
      height: 23px;
      position: absolute;
      bottom: 5px;
    }
    input {
      height: 30px;
      color: #ccc;
      outline-style: none;
      border: none;
      border-bottom: 1px solid #ccc;
      padding-left: 27px;
    }
  }
  .shopImg {
    width: 50px;
    height: 32px;
    // margin-left: 23px;
    position: relative;
    img {
      width: 30px;
      height: 30px;
    }
    .shopNum {
      position: absolute;
      right: 0px;
      font-size: 12px;
      width: 19px;
      height: 14px;
      background-color: red;
      text-align: center;
      color: #fff;
      border-radius: 10px;
    }
  }
}
</style>
